<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
	xmlns:pers="http://schema.org/Person/">

	<xsl:output method="xml" version="1.0" omit-xml-declaration="no"
		indent="no" encoding="utf-8" />

	<xsl:template match="text()">
		<!--
			Do nothing. Override, effectively, the "Built-In" rule which will
			process all text inside elements otherwise not matched by any
			xsl:template. Note: With this in place, be sure to then provide
			templates or "value-of" statements to actually _get_ the (desired)
			text out to the result document!
		-->
	</xsl:template>

	<xsl:template match="/rdf:RDF/rdf:Description">
	   <xsl:if test="substring-after(@rdf:about, '/expert/') != ''">
		<xsl:element name="concept">
			<xsl:attribute name="about"><xsl:value-of select="substring-after(@rdf:about, '/expert/')" /></xsl:attribute>
			<xsl:variable name="about" select="substring-after(@rdf:about, '/expert/')" />
			<xsl:element name="prefLabel">
				<xsl:value-of select="pers:name" />
			</xsl:element>
			<xsl:element name="editorialNote">
				<xsl:value-of select="pers:gender" />  <xsl:value-of select="pers:telephone" />
			</xsl:element>
			<xsl:element name="scopeNote">
				<xsl:value-of select="pers:jobTitle" /> : <xsl:value-of select="pers:worksFor" />
			</xsl:element>
			<xsl:element name="url">
				<xsl:value-of select="pers:url" />
			</xsl:element>
		</xsl:element>
	   </xsl:if>
	</xsl:template>

</xsl:stylesheet>
